{% extends "base.html" %}

{% block head %}
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title>课程管理系统 - 登录</title>
  <link rel="stylesheet" href="static/css/bootstrap.css"/>
  <link rel="stylesheet" href="static/css/bootstrap-theme.css"/>
  <script src="static/js/jquery-3.3.1.js"></script>
  <script src="static/js/bootstrap.min.js"></script>
{% endblock %}

{% block nav_bar %}
    <nav class="navbar navbar-default">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">jQuery Test</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li><a href="/">Home</a></li>
            <li><a href="#">About</a></li>
            <li class="active"><a href="/login">Login</a></li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>
{% endblock %}

{% block content %}
  <div class="page-header">
    <div class="row">
      <div class="col-sm-6">
        <h1>登录</h1>
      </div>
    </div>
  </div>
  <div class="row">
    <div class="col-sm-4">
      <form action="/api/login" method="post">
        <div class="form-group">
          <label>用户名：</label><input class="form-control" type="text" name="username"/>
        </div>
        <div class="form-group">
          <label>密码：</label>
          <input class="form-control" type="password" name="password"/>
        </div>
        <div class="form-group-lg">
          <label>记住我 <input type="checkbox" name="remember-me" value="1"/></label>
        </div>
        <div class="form-group">
          <input class="btn btn-primary" type="submit" value="Login" />
        </div>
      </form>
    </div>
  </div>
{% endblock %}
